<template>
  <el-badge v-bind="$attrs" v-on="$listeners" @click.native="test">
    <slot></slot>
  </el-badge>
</template>

<script>
export default {
  methods:{
    test(){
      console.log('click badge')
    }
  }
}
</script>

<style>

</style>